﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="SumaryReport.aspx.cs" Inherits="LuxuryResort.WebSite.NationalAdmin.SumaryReport" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>National Summary Report</h1>
    <asp:Repeater ID="rptResort" runat="server">
        <ItemTemplate>
            <fieldset>
                <legend style="color:Red">
                    <%#Eval("ResortName")%></legend>
                <asp:ListView ID="lvRoomSumary" runat="server" DataSource='<%# Eval("RoomReports")%>'>
                    <LayoutTemplate>
                        <fieldset>
                            <legend>Room Reservation Information</legend>
                            <table class="roomList">
                                <tr>
                                    <th style="width: 10%">
                                        RoomNo
                                    </th>
                                    <th>
                                        Customer Name
                                    </th>
                                    <th>
                                        Check In
                                    </th>
                                    <th>
                                        Check Out
                                    </th>
                                    <th>
                                        Day(s) Booked
                                    </th>
                                    <th>
                                        Payment Amount
                                    </th>
                                </tr>
                                <tr runat="server" id="itemPlaceholder">
                                </tr>
                            </table>
                        </fieldset>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 10%; text-align: center">
                                <asp:Label ID="lblRoomNo" runat="server" Text='<%#Eval("RoomNo") %>' />
                            </td>
                            <td>
                                <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>' />
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="lblCheckIn" runat="server" Text='<%# ((DateTime)Eval("CheckIn")).ToString("dd/MM/yyyy") %>' />
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="lblCheckOut" runat="server" Text='<%# ((DateTime)Eval("CheckOut")).ToString("dd/MM/yyyy") %>' />
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="lblQuantity" runat="server" Text='<%#Eval("Quantity") %>' />
                            </td>
                            <td style="text-align: right">
                                <asp:Label ID="lblPaymentAmount" runat="server" Text='<%#Eval("PaymentAmount") %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>
                <asp:ListView ID="lvFoodSumary" runat="server" DataSource='<%#Eval("FoodReports")%>'>
                    <LayoutTemplate>
                        <fieldset>
                            <legend>Food Order Information</legend>
                            <table class="roomList">
                                <tr>
                                    <th style="width: 10%">
                                        Food/Beverage Name
                                    </th>
                                    <th>
                                        Customer Name
                                    </th>
                                    <th>
                                        Type
                                    </th>
                                    <th>
                                        Quantity
                                    </th>
                                    <th>
                                        Payment Amount
                                    </th>
                                </tr>
                                <tr runat="server" id="itemPlaceholder">
                                </tr>
                            </table>
                        </fieldset>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <tr>
                            <td style="width: 15%; text-align: left">
                                <asp:Label ID="lblFBName" runat="server" Text='<%#Eval("FBName") %>' />
                            </td>
                            <td>
                                <asp:Label ID="lblCustomerName" runat="server" Text='<%#Eval("CustomerName") %>' />
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="lblFBType" runat="server" Text='<%# Eval("FBType") %>' />
                            </td>
                            <td style="text-align: center">
                                <asp:Label ID="lblQuantity" runat="server" Text='<%#Eval("Quantity") %>' />
                            </td>
                            <td style="text-align: right">
                                <asp:Label ID="lblPaymentAmount" runat="server" Text='<%#Eval("PaymentAmount") %>' />
                            </td>
                        </tr>
                    </ItemTemplate>
                </asp:ListView>
            </fieldset>
        </ItemTemplate>
    </asp:Repeater>
</asp:Content>
